#include "head.h"
#include <iostream>
using std::cerr;
using std::endl;

double div(double num1, double num2){
    if(0 == num2){
        cerr << "error: num2 is zero!" << endl;
        return -1;
    }
    return num1 / num2;
}